<template>
  <div class="nav">
      <div class="logo">
        <p>小鳄鱼地产</p>
        <p style="font-size: 16px">XiaoeYu Real Estate</p>
      </div>
    <el-col :span="24" align="middle" class="view-center">
      <el-row type="flex" align="middle">
        <div><img src="../assets/logo.png" alt="" height="30px" /></div>
        <el-menu 
        
          router
          :default-active="activeIndex2"
          class="el-menu-demo menu-nav"
          mode="horizontal"
          text-color="#fff"
          active-text-color="#ffd04b"
        >
          <el-menu-item index="/">首页</el-menu-item>
          <el-menu-item index="/agent">房产经纪</el-menu-item>
          <el-menu-item index="/category">地产分类</el-menu-item>
          <el-menu-item index="/about">关于我们</el-menu-item>
        </el-menu>
      </el-row>
    </el-col>
  </div>
</template>

<script>
export default {
  data() {
    return {
     activeIndex: '1',
     activeIndex2: '1'
    }
  },
};
</script>

<style lang='scss' scoped>
.nav {
  z-index: 999;
  position: absolute;
  top: 50px;
  right: 150px;
}
.el-menu-demo {
  background-color: rgba(0, 0, 0, 0);
  
}
.el-menu--horizontal > .el-menu-item {
  color: #000 !important;
}
.el-menu.el-menu--horizontal {
  border: none;
  li {
    
    border: none;
    font-size: 14px;
  }
  a {
    text-decoration: none;
  }
}
.el-menu-item.is-active {
  background-color: rgba(0, 0, 0, 0) !important;
}
.el-menu--horizontal .el-menu-item:not(.is-disabled):hover {
  background-color: rgba(0, 0, 0, 0) !important;
}
.logo {
  z-index: 999;
  position: absolute;
  top: -30px;
  left: -800px;
  color: #fff;
  font-size: 25px;
}
.view-center {
  .menu-nav {
  font-size: 12px;
}
}

</style>